class CreatePatientDatas < ActiveRecord::Migration
  def self.up
    create_table :patient_datas do |t|
      t.string :first_name
      t.string :laste_name
      t.string :street
      t.string :street_number
      t.string :city
      t.integer:zip_code
      t.string :email
      t.string :pesel
      t.string :telpehone_number

      t.timestamps
    end

    PatientData.create :first_name => "Jan",
      :laste_name => "Kowalski",
      :street => "Sudecka",
      :street_number => "27/3",
      :city => "Wroclaw",
      :zip_code => 37700,
      :email => "dsad@fdsa.pl",
      :pesel => "85102402350",
      :telpehone_number => "6788967"
  end



  def self.down
    drop_table :patient_datas
  end
end
